import { ISearchFormConfig } from "@/types/userType"
export const searchFormConfig: ISearchFormConfig = {
  itemStyle: { padding: "0px 10px" },
  labelwidth: "90px",
  cLayout: { span: 8 },
  showHeader: true,
  showFooter: true,
  searchFormItems: [
    {
      field: "id",
      label: "id",
      placeholder: "请输入查询id",
    },
    {
      field: "name",
      label: "用户名",
      placeholder: "请输入用户名",
    },
    {
      field: "realname",
      label: "真实姓名",
      placeholder: "请输入真实姓名",
    },
    {
      field: "cellphone",
      label: "电话号码",
      placeholder: "请输入电话号码",
    },
    {
      field: "enable",
      label: "状态",
      placeholder: "请输入用户名",
      elType: "select",
      options: [
        { name: "启用", value: 1 },
        { name: "禁用", value: 0 },
      ],
    },
    {
      field: "createAt",
      label: "创建时间",
      elType: "picker",
      otherOption: {
        startPlaceholder: "开始时间",
        endPlaceholder: "结束时间",
        type: "daterange",
      },
    },
  ],
}
